<template>
  <div id="app">
   
    <router-view/>
    <MuFoot v-show="$route.meta.show" />
  </div>
</template>

<script>
import axios from 'axios'
import MuFoot from '@/components/MuFoot.vue'
export default {
  components:{
    MuFoot
  },
  data() {
    return {
      type:'手机'
    }
  },
  mounted() {
    axios.get('http://localhost:3000/xiaomi?type=手机').then(
      response => {
        // console.log('@@',response);
      },
      error =>{
        console.log('失败');
      }
    )
  },
}
</script>
<style>
  @import './assets/css/common.css';
</style>